package com.music.service;


import com.github.pagehelper.PageInfo;
import com.music.pojo.Playlist;
import com.music.pojo.Singer;
import com.music.utils.PlayListInfo;

import java.util.List;

public interface PlayListService {
    PageInfo<Playlist> findPlaylistBySearch(String search, Integer pageNum);

    PageInfo<Playlist> find(Integer pageNum,Integer pageSize);

    PageInfo<Playlist> findByMid(Integer pageNum, Integer pageSize, Integer mid);

    List<Playlist> findByUid(Integer uid);

    void removeFavorite(Integer mid, Integer uid);

    void addFavorite(Integer mid, Integer plid);

    void addFavoriteToNew(Integer mid, String plname, Integer uid);

    void addNewPlayList(String plname,Integer uid);
    void updatePlayListPic(Integer mid,Integer plid);

    PageInfo<Playlist> findPlaylistByCategory(String category,Integer pageNum);

    Playlist findDetailByPlid(Integer plid, Integer uid);

    void addFavoritePlayList(Integer plid, Integer uid);

    void removeFavoritePlayList(Integer plid, Integer uid);

    void removePlayList(Integer plid);

    void addOrUpdatePlayList(PlayListInfo playListInfo, Integer uid);
}
